 import request from '@/router/axios'

export function exportExcel(query) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/export',
    method: 'get',
    params: query,
    responseType: 'arraybuffer'
  })
}


export function fetchList(query) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice',
    method: 'put',
    data: obj
  })
}

export function delBatch(id) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/delBatch',
    method: 'delete',
    data: id
  })
}

export function noticeBatch(obj) {
  return request({
    url: '/stm/swstconductorfareconsolidationnotice/noticeBatch',
    method: 'put',
    data: obj
  })
}
